package com.ian.service.impl;

import com.ian.service.ConcurrencyService;
import org.springframework.stereotype.Service;

/**
 * Concurrency service implementation
 *
 * @author Witt
 * @version 1.0.0
 * @date 2022/5/10
 */
@Service
public class ConcurrencyServiceImpl implements ConcurrencyService {

    // @PreAuthorize("hasRole('admin')") 该注解可以放在接口方法上，也可以放在相应的实现类的方法上，两者只要放其一即可
    @Override
    public String concurrency() {
        System.out.println("concurrency");
        return "concurrency";
    }
}
